package com.becca.cake.service.system;

import java.util.List;

import com.becca.cake.model.system.DataDictionaryDO;

/**
 * 数据字典Service接口
 * @author hejinguo
 * @version $Id: IDataDictionaryService.java, v 0.1 2013-12-20 上午01:24:18
 */
public interface IDataDictionaryService {
    /**
     * 加载数据字典树
     * @author hejinguo
     * @param adminId
     * @return
     * @throws Exception
     */
    String selectDictionaryTreeMenu() throws Exception;

    /**
     * 根据ID查询数据字典信息
     * @author hejinguo
     * @param id
     * @return
     * @throws Exception
     */
    DataDictionaryDO selectDataDictionaryMsgById(String id) throws Exception;

    /**
     * 添加数据字典信息
     * @author hejinguo
     * @param dataDictionaryDO
     * @throws Exception
     */
    void insetDataDictionary(DataDictionaryDO dataDictionaryDO) throws Exception;

    /**
     * 修改数据字典信息
     * @author hejinguo
     * @param dataDictionaryDO
     * @throws Exception
     */
    void updateDataDictionaryById(DataDictionaryDO dataDictionaryDO) throws Exception;

    /**
     * 数据字典中根据类型显示该类型下的全部数据
     * @author hejinguo
     * @param map
     * @return
     * @throws Exception
     */
    List<DataDictionaryDO> selectDataDictionary(String dictionaryType, String useable)
                                                                                      throws Exception;
}
